@charset "utf-8";

.items {
    padding: 0.9rem 0.9rem 0.9rem 1rem;
    overflow: hidden;

    .title {
        padding: 0 0.9rem;
        position: relative;
        font-weight: normal;
        font-size: 1.16rem;

        &::before {
            position: absolute;
            left: 0;
            top: 20%;
            content: "";
            width: 0.35rem;
            border-radius: 5px;
            height: 60%;
            background: #26c2bf;
        }

        span {
            display: inline;
            margin-left: 0.9rem;
            color: #8f8f9e;
            font-size: 0.8rem;
        }

        a {
            float: right;
            margin-left: 0.9rem;
            color: #8f8f9e;
            font-size: 1rem;
        }
    }

    .mint-swipe-indicators {
        bottom: 5px;
        left: 42vw;

        .mint-swipe-indicator {
            width: 0.4rem;
            height: 0.4rem;

            &.is-active {
                background: #26c2bf !important;
                opacity: 0.6;
                margin: 0 2px;
            }
        }
    }

    .item {
        width: 100%;
        margin: 1.2rem 0 1.5rem;

        .books_fm {
            width: 20vw;
            height: 26vw;
            margin-right: 0.6rem;
        }

        .text {
            width: 68vw;

            span {
                font-size: 0.8rem;
            }

            .top span {
                width: 62vw;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                /* 这里是超出几行省略 */
                overflow: hidden;
            }
        }
    }

    a {
        display: flex;

        .text {
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            h4 {
                color: #333;
                font-weight: normal;
                font-size: 1rem;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: block;
            }

            span {
                color: #8f8f9e;
            }

            .bottom {
                display: flex;
                justify-content: space-between;
            }
        }
    }
}

.books_fm {
    border-radius: 4px;
}

// 提示消息
.tips {
    background: #ffcdc733;
    margin: 0.3rem 1rem 0.5rem;
    display: flex;
    border-radius: 2rem;
    position: relative;

    .tips_icon {
        height: 100%;
        position: absolute;
        left: 0;
    }

    p {
        font-size: 0.857rem;
        padding: 0.05rem 0.9rem;
        margin-left: 1rem;

        >span {
            line-height: 1;

            >span {
                color: #ffa28d;
                margin-right: 0.2rem;
            }
        }
    }
}

// 今日必读
.todayread {
    .books_swipe {
        width: 100%;
        height: 35vw;
        margin-top: 0.9rem;
        margin-left: 1.05rem;

        .mint-swipe-items-wrap>div {
            width: 90%;
        }

        a {
            padding: 0 2rem 0.4rem 0;
            box-shadow: 0.0560014934rem 0.0560014934rem 0.1680044801rem 0 rgb(0 0 0 / 10%);
            border-radius: 10px;
            background: #fff1;

            .top span {
                width: 54vw;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: block;
            }

            .books_fm {
                width: 20vw;
                height: 26vw;
                margin-right: 0.6rem;
            }

            .text {
                width: 57vw;
                padding-top: 0.9rem;
            }
        }
    }
}

// 新书精选
.new_book .item {
    display: flex;
    margin-bottom: 0.7rem;

    & {
        >a>.books_fm {
            width: 30vw;
            height: 36vw;
            border-radius: 0 6px 6px 0;
        }

        position: relative;

        a {
            display: inline-block;
        }

        .text {
            width: 59vw;
            margin-left: 0.9rem;
            position: absolute;
            left: 30.2vw;
            top: 0;
            height: 100%;

            h4 {
                font-size: 1rem;
                font-weight: normal;

                span {
                    display: inline!important;
                    margin-left: 0.4rem;
                    color: #8f8f9e;
                }
            }

            .top span {
                -webkit-line-clamp: 1;
                color: #8f8f9e;
            }
        }

        .bottom {
            display: flex;
            position: absolute;
            bottom: 0;

            .books_fm {
                width: 16vw;
                height: 20vw;
                margin-right: 0.9rem;
            }
        }
    }
}

// 本周强推
.strong_push {
    .books_push {
        display: flex;
        flex-wrap: wrap;

        >a {
            width: 22%;
            margin: 0.8rem 0 0.2rem 4%;
            display: block;

            &:nth-child(4n + 1) {
                margin-left: 0;
            }

            &:nth-child(4n) {
                margin-right: 0;
            }

            img {
                width: 100%;
                height: 26vw;
            }

            p {
                color: #333;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: block;
                font-size: 1rem;
            }

            span {
                display: block;
                color: #8f8f9e;
                font-size: 0.8rem;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                display: block;
            }
        }
    }
}

//  勤更热追
.books_hot .books_push a {
    width: 30.66%;

    img {
        height: 36vw;
        border-radius: 0 14px 0 0;
    }

    span {
        word-break: break-all;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        /* 这里是超出几行省略 */
        overflow: hidden;
        white-space: normal;
    }
}

// 按钮
.btns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;

    .mint-button--small {
        width: 92%;
        border-radius: 50px;
        background: #f1f1f1;
        margin: 0 auto;
    }

    &.btn_two {
        .mint-button--small {
            width: 48%;
        }
    }

    &.btn_box {
        margin-bottom: 1.25rem;
    }
}